#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdio.h>
#include<string.h>

int main()
{
	int number;
	scanf("%d", &number);
	int real_weight, real_height;
	while (number)
	{
		scanf("%d %d", &real_height, &real_weight);
		float stand_weight = (real_height - 100) * 0.9*2.0;
		float p = stand_weight - real_weight;
		int a = 1;
		if (p < 0)
		{
			p = -p;
			a = -1;
		}
		if (p < stand_weight * 0.1)
		{
			printf("You are wan mei!/n");
		}
		else if (p > stand_weight && a == 1)
		{
			printf("You are tai shou le!/n");
		}
		else if (p > stand_weight && a ==- 1)
		{
			printf("You are tai pang le!/n");
		}
	}
	return 0;
}